package com.tjetc.mapper;

import org.apache.ibatis.annotations.*;

public interface IdCardMapper {

    @Insert("insert into idcard(idcard,newborn_id) values(#{idcard},#{id})")
    int  setIdCard(@Param("idcard") String Idcard,@Param("id") int  id);

    @Delete("delete from idcard where newborn_id = #{id1}")
    int deleteByPrimaryKey(int id1);


    @Update("update idcard set idcard = #{idcard} where newborn_id = #{id}")
    void updateIdCardById(@Param("idcard") String idcard,@Param("id") int id);

    @Select("select idcard from idcard where newborn_id = #{id}")
    String findIdCardById(int id);
}
